package zuoye01;
/*(1) 属性:职员Clerk(该经理的职员)
    (2) 方法:
        1. 空参数构造方法和满参数构造方法
        2. 属性的get和set方法
        3. 重写父类的showMsg方法，按照要求实现信息打印
 */
public class Manager extends Employee {
    private String clerk;

    @Override
    public void showMsg() {
        System.out.println(getDept()+"的:"+getName()+"，员工编号:"+getWorkId());
        System.out.println("他的职员是"+clerk);
    }

    public Manager() {
    }

    public Manager(String clerk) {
        this.clerk = clerk;
    }

    public String getClerk() {
        return clerk;
    }

    public void setClerk(String clerk) {
        this.clerk = clerk;
    }
}
